package com.example.demo.domain.app.param;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * ShoppingCartParam
 *
 * @author haochen78
 * @date 2025/11/11 15:24
 **/
@Data
public class ShoppingCartParam {

    /** 商品 id */
    private Long goodsId;
    /** 商品规格尺寸 */
    private List<ProductSku> sku;
    /** 商品附加项 */
    private List<ProductAddition> addition;
    /** 添加数量 */
    private Integer number;


    @Getter
    @Setter
    public static class ProductSku {
        /** 规格项 id */
        private Long optionId;
        /** 规格值 id */
        private Long optionValueId;
    }

    @Getter
    @Setter
    public static class ProductAddition {
        /** 附加值 id */
        private Long id;
        /** 附加项 id */
        private Long pid;
    }
}
